<template>
  <div
    class="login-container"
    :style="{ 'background-image': 'url(' + loginBg + ')' }"
  >
    <img :src="logoImg" class="top_logo" @click="toMourefun" alt="" srcset="" />
    <div class="login_inner">
      <div class="title-container">莫凡OA</div>
      <el-button
        :loading="loading"
        class="login_btn"
        type="primary"
        size="medium"
        @click.native.prevent="getAccredit"
        >钉钉授权登录</el-button
      >
    </div>
  </div>
</template>

<script>
  import index from "./index";
  export default index;
</script>

<style lang="scss" scoped>
$bg: #2d3a4b;
$dark_gray: #889aa4;
$light_gray: #eee;

.login-container {
  min-width: 1200px;
  height: 100vh;
  min-height: 682px;
  background-size: 100% 100%;
  background-repeat: no-repeat;

  .top_logo{
    width: 200px;
    cursor: pointer;
  }

  .login_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 320px;
    height: 280px;
    margin-left: -160px;
    margin-top: -140px;
  }

  .login_btn{
    width:100% !important;
    background-color:#3399CC!important;
    border-color:#3399CC!important;
  }

  .title-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #666666;
    text-align: center;
    font-weight: bold;
    margin-bottom: 32px;
  }
}
</style>
